package com.cheyun.netsalev3.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import java.io.Serializable

data class DialogParam(var name: String, var id: String, var icon: String? = null) : BaseObservable(), Serializable {
    override fun toString(): String {
        return "{name:$name,id:$id,IsSelect:$IsSelect,ikey:$ikey}"
    }

    var ikey = ""

    constructor(name: String, id: String, icon: String, IsSelect: Boolean) : this(name, id, icon) {
        this.IsSelect = IsSelect
    }

    @get:Bindable
    var IsSelect: Boolean = false
        set(isSelect) {
            field = isSelect
            notifyPropertyChanged(BR.isSelect)
        }
}
